<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML 1.1//EN' 'http://www.wapforum.org/DTD/wml_1.1.xml'>
<wml>
<head>
  <meta http-equiv="Content-type" content="text/vnd.wap.wml; charset=utf-8"/>
  <meta http-equiv='Cache-Control' content='max-age=0' forua='true'/>
</head>
<#include "/frame/config.ftl">
<card title="...."><br/>
<#setting number_format="0.##"/>
<#macro encodeUrl href>
<#local sid = ""/>
<#local param = ""/>
<#local id = ""/>
<#list href?split("/") as x>
<#if x_index = 1><#local sid = x/></#if>
<#if x_index = 2><#local param = x/></#if>
<#if x_index = 3><#local id = x/></#if>
</#list>
<#local newUrl = "/" + MD5.encodeAndTime(sid, id, param) + "/" + sid + "/" + param + "/" + id/>
${newUrl}</#macro>

<#macro a href><a href="<@encodeUrl href/>"></#macro>
<#macro go href method><go href="<@encodeUrl href/>" method="${method}"></#macro>


<#macro addr><"http://192.168.1.202:80/"></#macro>


<#macro showPlayerItem playerItemVo>
	<#if playerItemVo?exists>
		名称：${playerItemVo.name}<br/>
		描述：${playerItemVo.description}<br/>
		等级：${playerItemVo.level}(LV)<br/>
		强化等级：${playerItemVo.improveLevel}<br/>
		持久：${playerItemVo.curEndure/constants.GAME_MULTIPLE}/${playerItemVo.endure/constants.GAME_MULTIPLE}<br/>
		占用负重：${playerItemVo.weight}<br/>
		<#if playerItemVo.gem?exists && (playerItemVo.gem.size > 0)>
			镶嵌物：${playerItemVo.needCharmValue}<br/>
		</#if>
		<#if (playerItemVo.attackHotMin > 0) || (playerItemVo.attackHotMax > 0)>
			炎攻：${playerItemVo.attackHotMin}-${playerItemVo.attackHotMax}<br/>
		</#if>
		<#if (playerItemVo.attackColdMin > 0) || (playerItemVo.attackColdMax > 0)>
			寒攻：${playerItemVo.attackColdMin}-${playerItemVo.attackColdMax}<br/>
		</#if>
		<#if (playerItemVo.defenseHotMin > 0) || (playerItemVo.defenseHotMax > 0)>
			炎防：${playerItemVo.defenseHotMin}-${playerItemVo.defenseHotMax}<br/>
		</#if>
		<#if (playerItemVo.defenseColdMin > 0) || (playerItemVo.defenseColdMax > 0)>
			寒防：${playerItemVo.defenseColdMin}-${playerItemVo.defenseColdMax}<br/>
		</#if>
		<#if playerItemVo.broken>是否已经断裂：是<br/>
			<#else>是否已经断裂：否<br/>
		</#if>
		<#if (playerItemVo.needCharmValue > 0)>
			需要魅力：${playerItemVo.needCharmValue}<br/>
		</#if>
	</#if>
</#macro>

<#macro showItem item>
	<#if item?exists>
		名称：${item.name}<br/>
		描述：${item.description}<br/>
		等级：${item.level}(LV)<br/>
		数量：${item.num}<br/>
	</#if>
</#macro>

<#macro showCommonItem item>
	<#if item?exists>
		名称：${item.name}<br/>
		描述：${item.description}<br/>
		等级：${item.level}(LV)<br/>
		<#if (item.position==0)>
			<#--数量：${item.num}<br/>-->
			<#else>
			占用负重：${item.weight}<br/>
			<#if (item.attackHotMin > 0) || (item.attackHotMax > 0)>
				炎攻：${item.attackHotMin}-${item.attackHotMax}<br/>
			</#if>
			<#if (item.attackColdMin > 0) || (item.attackColdMax > 0)>
				寒攻：${item.attackColdMin}-${item.attackColdMax}<br/>
			</#if>
			<#if (item.defenseHotMin > 0) || (item.defenseHotMax > 0)>
				炎防：${item.defenseHotMin}-${item.defenseHotMax}<br/>
			</#if>
			<#if (item.defenseColdMin > 0) || (item.defenseColdMax > 0)>
				寒防：${item.defenseColdMin}-${item.defenseColdMax}<br/>
			</#if>
			<#if (item.needCharmValue > 0)>
				需要魅力：${item.needCharmValue}<br/>
			</#if>
		</#if>
	</#if>
</#macro>

<#macro showSelf player>
	<#if player?exists>
		姓名：${player.name}<br/>
		等级：${player.level}(LV)<br/>
		<#if player.sex = 1>
			性别：女<img alt="" src="/female.png" /><br/>
			<#else>性别：男<img alt="" src="/male.png" /><br/>
		</#if>
		<#if full_exp?exists>
			经验：${player.exp}/${full_exp}
			<#if (player.exp == full_exp)||(player.exp>full_exp)>
				<img alt="" src="/upgrade.gif" /><@a href="/${sid}/P_UL/${pid}"/>升级</a>
			</#if>
		</#if>
		<br/>
		气血：${player.curHp}/${player.hp}<br/>
		魔法：${player.curMp}/${player.mp}<br/>
		天赋炎攻：+${player.attackHot}<br/>
		天赋寒攻：+${player.attackCold}<br/>
		天赋炎防：+${player.defenseHot}<br/>
		天赋寒防：+${player.defenseCold}<br/>
		碎银：${player.money}<br/>
		金币：${player.gold}<br/>
		魅力：${player.charmValue}<br/>
	</#if>
</#macro>

<#macro showOther player>
	<#if player?exists>
		姓名：${player.name}<br/>
		等级：${player.level}(LV)<br/>
		<#if player.sex = 1>
			性别：女<img alt="" src="/female.png" /><br/>
			<#else>性别：男<img alt="" src="/male.png" /><br/>
		</#if>
		魅力：${player.charmValue}<br/>
		气血：${player.curHp}/${player.hp}<br/>
		魔法：${player.curMp}/${player.mp}<br/>
	</#if>
</#macro>

<#macro showTower tower>
	<#if tower?exists>
		名称：<#if tower.hierarchy==0>凡兽孵化塔<br/>
		描述：通过孵化，有很大几率获得品质为凡兽的宠物。孵化的宠物可培养成战斗伙伴，也可以用于孕育宠物套装<br/>
		<#elseif tower.hierarchy==1>仙兽孵化塔<br/>
		描述：通过孵化，有一定机率获得品质为仙兽的宠物。孵化的宠物可培养成战斗伙伴，也可以用于孕育宠物套装<br/>
		<#elseif tower.hierarchy==2>神兽孵化塔<br/>
		描述：通过孵化，有较小机率获得品质为神兽的宠物。孵化的宠物可培养成战斗伙伴，也可以用于孕育宠物套装<br/></#if>
		<#--描述：${tower.description}<br/>-->
		持久：${tower.currEndure/constants.GAME_MULTIPLE}/${tower.endure/constants.GAME_MULTIPLE}
		<#if (tower.currEndure < tower.endure - constants.GAME_MULTIPLE)><@a href="/${sid}/TA_RL?${tower.towerId}?0/${pid}" />修复</a></#if><br/>
		成功孵化次数：${tower.incubationTimes}<br/>
		出租<@a href="/${sid}/TA_RD/${pid}" />【规则】</a>：
		<#if (tower.incubationTimes >= constants.RENT_LAIR_MIN_INCU_TIMES)>
			<#if (tower.startRentTime + tower.rentTime > gameDateUtil.now())>
				${gameDateUtil.formatSeconds(tower.startRentTime + tower.rentTime - gameDateUtil.now())}后到期<@a href="/${sid}/TA_RWL?${tower.towerId}?0/${pid}"/>【续期】</a>
				<#else><@a href="/${sid}/TA_RTL?${tower.towerId}/${pid}"/>出租孵化塔</a>
			</#if>
			<#else>出租孵化塔
		</#if><br/>
		
	</#if>
</#macro>

<#macro showPet pet>
	<#if pet?exists>
		名称：${pet.name}<#if pet.hierarchy==0>【凡兽】<br/><#elseif pet.hierarchy==1>【仙兽】<br/><#elseif pet.hierarchy==2>【神兽】<br/></#if>
		描述：${pet.description}<br/>
		宠物性别：<#if pet.sex==1><img alt="" src="/female.png" />雌性<br/><#elseif pet.sex==2><img alt="" src="/male.png" />雄性<br/></#if>
		孕育（成熟）：<@a href="/${sid}/B_VCI?${pet.breedId}/${pid}"/>${pet.breedName}</a><br/>
		成长值：${pet.curMaturity}/${pet.maturity}<br/>
		喂养
	</#if>
</#macro>

<#macro showAnimal animal>
	<#if animal?exists>
		名称：${animal.name}<br/>
		描述：${animal.description}<br/>
	</#if>
</#macro>

<#macro showMsg msg>
	<#if msg?exists>
		<#if msg.getFromPlayerName()?exists && msg.getFromSid()?exists>
			<#if msg.type = 2>
				<#if msg.getFromPlayerId() == pid>
					@私
					<#if msg.getToPlayerName() == "">
						<@a href="/${sid}/C_GSPM?${msg.getToPlayerId()}/${pid}"/>离线消息</a>
						<#else><@a href="/${sid}/C_GSPM?${msg.getToPlayerId()}/${pid}"/>${msg.getToPlayerName()}</a>
					</#if>
					<#else>
						<#if msg.sex = 1>
							<@a href="/${sid}/C_GSPM?${msg.getFromPlayerId()}/${pid}"/><img alt="" src="/female.png" />${msg.getFromPlayerName()}</a>
							<#elseif msg.sex = 2>
								<@a href="/${sid}/C_GSPM?${msg.getFromPlayerId()}/${pid}"/><img alt="" src="/male.png" />${msg.getFromPlayerName()}</a>
						</#if>
				</#if>
			<#elseif msg.fromPlayerId = pid>
				我
				<#else>
				<#if msg.sex = 1>
					<@a href="/${sid}/P_VO?${msg.getFromPlayerId()}/${pid}"/><img alt="" src="/female.png" />${msg.getFromPlayerName()}</a>
					<#elseif msg.sex = 2>
						<@a href="/${sid}/P_VO?${msg.getFromPlayerId()}/${pid}"/><img alt="" src="/male.png" />${msg.getFromPlayerName()}</a>
				</#if>
			</#if>
		<#else>系统
		</#if>
		[${dateUtil.formatFromLong(msg.time,"MM-dd HH:mm:ss")}]：${msg.content}
		<#if msg.type == constants.CHAT_WORLD_ACT || msg.type == constants.CHAT_PRIVATE_ACT>
			<#if msg.cmd == constants.REPAIR_LAIR>
				<@a href="/${sid}/TA_RL?${msg.par}?0?${msg.id}/${pid}" />去修复</a>
			</#if>
		</#if>
		<br/>
	</#if>
</#macro>
